package org.shoukaiseki.app.interceptor.service;

import javax.servlet.http.HttpSession;

/**
 * org.shoukaiseki.app.interceptor.IAppUserSessionService
 * <br>
 *
 * @author shoukaiseki ブログ http://www.shoukaiseki.top/<br> E-メール jiang28555@Gmail.com<br>
 * @date 2020-12-09 10:16:36<br>
 */
public interface IAppUserSessionService {

    /**
     * 保存用户信息到session中
     * @param user
     */
    void saveAppUserToSession(Object user);

    /**
     * 保存用户信息到session中
     * @param session
     * @param user
     */
    void saveAppUserToSession(HttpSession session, Object user);

    <T> T getAppUserFromSession();

    <T> T getAppUserFromSession(HttpSession session);
}
